/**
 * Created by Panda on 08/02/2017
 */
(function () {
    'use strict';

    var coursewareVerifyStatusMap = {
        "-1": "审核不通过",
        "0": "未审核",
        "2": "审核通过",
        "1000": "初始化数据"
    };

    var attachIconMap = {
        "doc":"3",
        "pdf":"2",
        "ppt":"4",
        "video":"1"
    };

    angular
        .module('com.akxx.aqzyk')
        .filter('attachIconFilter', attachIconFilter)
        .filter('coursewareVerifyStatusFilter', coursewareVerifyStatusFilter);

    /** @ngInject */
    function attachIconFilter() {
        return function (type) {
            return attachIconMap[type];
        }
    }

    function coursewareVerifyStatusFilter() {
        return function (status) {
            return coursewareVerifyStatusMap[status];
        }
    }

})();
